#!/bin/bash
# 本地环境
# python3 manage.py runserver 0.0.0.0:8000 --insecure
chmod 755 /app/algorithm-news-service
python3 manage.py collectstatic
# 生成ORM
python3 manage.py makemigrations
# 迁移数据
python3 manage.py migrate
# 后面删掉，仅首次启动需要
#RUN python3 manage.py loaddata db.json

uwsgi --ini uwsgi.ini